import Mock from "mockjs";

const data = [
  {
    id: 1,
    name: "张三",
    idCard: "140123456",
    img: "https://img2.baidu.com/it/u=1297740018,2772695612&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
    station: [
      {
        start: "北京西",
        end: "武汉",
        longitude: "1",
        dimen: "2",
        startTime: 1696348800000,
        endTime: 1696435200000,
        type: "G71",
      },
      {
        start: "武汉",
        end: "成都",
        longitude: "1",
        dimen: "2",
        startTime: 1697644800000,
        endTime: 1698336000000,
        type: "G22",
      },
    ],
  },
  {
    id: 1,
    name: "李四",
    idCard: "110123456",
    img: "https://img2.baidu.com/it/u=1284413808,930446668&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
    station: [
      {
        start: "北京西",
        end: "武汉",
        longitude: "1",
        dimen: "2",
        startTime: 1696348800000,
        endTime: 1696435200000,
        type: "G71",
      },
      {
        start: "武汉",
        end: "成都",
        longitude: "1",
        dimen: "2",
        startTime: 1697644800000,
        endTime: 1698336000000,
        type: "G22",
      },
    ],
  },
];

Mock.mock("/getUserStation", {
  code: 1,
  data,
  msg: "获取用户成功",
});

Mock.mock("/api/city", {
  "data|3": [
    {
      "id|+1": 1,
      city: "@city",
      "state|1": [true, false],
    },
  ],
});
